package com.java.boot.controller;

import com.java.boot.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jingjintao
 * @date 2021/7/24 - 18:03
 **/
@RestController
public class HelloController {

    @Autowired
    private Person person;
    @RequestMapping("/person")
    public Person person(){
        System.out.println(person.getUserName());
        return person;
    }
}
